package com.xjscrm.console.chat.frame.send;

import com.xjscrm.console.chat.enums.ChatMsgType;
import com.xjscrm.console.chat.frame.dto.ChatRecordDTO;
import com.xjscrm.console.chat.frame.dto.ChatSessionDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 新会话消息
 *
 * @author mingyang.chen create in 2024/3/11 18:08
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SNewSessionMsg extends SResultMsg {

    public SNewSessionMsg() {
        this.setResultType(ChatMsgType.s_conversation_new_msg.getCode());
        this.setResultTypeDesc(ChatMsgType.s_conversation_new_msg.getDesc());
    }

    @ApiModelProperty(value = "员工id")
    private Long staffId;

    @ApiModelProperty("新会话信息")
    private ChatSessionDTO session;

    @ApiModelProperty("新增的聊天记录")
    private ChatRecordDTO talkRecord;
}
